#include "mylabel.h"
#include <QDebug>
#include <QEvent>
#include <QLabel>

MyLabel::MyLabel(QWidget* parent): QLabel(parent)
{
    this->setMouseTracking(true);
}

void MyLabel::enterEvent(QEvent* event)
{
    emit show();
}

void MyLabel::leaveEvent(QEvent* event)
{
    emit hide();
}


